<?php
$auth = $_SESSION['auth'];
if($auth<99)
{
	echo '<center>Non hai l\'autorizzazione per accedere a questa pagina.<br><br><img src="images/accesso_negato.gif"></center>';
	exit();
}
include 'connect.php';
$info = mysql_query("select * from info where id='1'");
$info2 = mysql_fetch_array($info);

?>

<div id="wrapper">
    	<div id="secWrapper">
        	<div id="container" class="clearfix">
            	<div id="mainCol" class="clearfix">
				    
		<h3 id="why">Advance Settings</h3><br>
                   
		<font size="2">
		
	<form name="settings" method="post">
	<table border="0">
	<tr>
		<td>Nome:</td><td><input type="text" value="<?php echo $info2['nome']; ?>" size="30" name="nome"></td>
	</tr>
	<tr>
		<td>Motto:</td><td><input type="text" value="<?php echo $info2['motto']; ?>" size="40" name="motto"></td>
	</tr>
	<tr>
		<td>Versione:</td><td><input type="text" value="<?php echo $info2['versione']; ?>" size="3" name="versione"></td>
	</tr>
	<tr>
		<td>Autore:</td><td><input type="text" value="<?php echo $info2['autore']; ?>" size="25" name="autore"></td>
	</tr>
	</table>
		<br><input type="button" value="Modifica" onClick="validateForm()">
	</form>
	<br><a href="home.php?page=bacheca">Indietro</a>
	
		</font>
                </div>
		
<script language="Javascript">
function validateForm() 
	{
	   document.settings.action = "advancesettings2.php";
	   document.settings.submit();
	}
</script>
                